package demo.practice.competition;

public class P1897 {

    public boolean makeEqual(String[] words) {
        int[] bucket = new int[26];


        for (String word : words) {
            for (char c : word.toCharArray()) {
                bucket[c-'a']+=1;
            }
        }



        for (int i : bucket) {
           if(i%words.length!=0)
               return false;
        }

        return true;
    }
}
